import request from '../../utils/request';
/**
 * 角色页面接口集合
 * @method signIn 用户登录
 */

//角色列表接口封装
export function useRoleApi() {
	return {
		signIn: (data: object) => {
			return request({
				url: '/auth/roles/index',
				method: 'post',
				data,
			});
		},
	};
}

//角色删除接口封装
export function useRoleDeleteApi() {
	return {
		signIn: (data: object) => {
			return request({
				url: '/auth/roles/del',
				method: 'post',
				data,
			});
		},
	};
}

//角色新增接口封装
export function useRoleAddApi() {
	return {
		signIn: (data: object) => {
			return request({
				url: '/auth/roles/add',
				method: 'post',
				data,
			});
		},
	};
}